﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WAU.DAL
{

    /// <summary>
    /// 瞬态的 EssentialDbContext（主要供异步调用）
    /// </summary>
    public class TrasientEssentialDbContext : EssentialDbContext
    {
        public TrasientEssentialDbContext(DbContextOptions<EssentialDbContext> options) : base(options)
        {
            this.ChangeTracker.AutoDetectChangesEnabled = false;
        }
    }
}
